import _http from '@/utils/http'

export default {
  mySupplierList(params, loading) {
    return _http('post', {
      url: "/ums/shop/relation/mySupplierList",
      apiName: '我的供应商下拉列表'
    }, params, loading)
  },

  myConsumerList(params, loading) {
    return _http('post', {
      url: "/ums/shop/relation/myConsumerList",
      apiName: '我的分销商下拉列表'
    }, params, loading)
  },

  goodsByOperator(params, loading) {
    return _http('post', {
      url: "/eas/app/off/goods/goodsByOperator",
      apiName: '根据供应商查询商品'
    }, params, loading)
  },

  orderUpload(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/resource/upload",
      apiName: '开卡资料上传'
    }, params, loading)
  },

  uploadImgPrivate(params, loading) {
    return _http('post', {
      url: "/eas/file/upload/img/private",
      apiName: '上传图片在OSS的私有域'
    }, params, loading)
  },

  orderSearch(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/submit/app/search",
      apiName: '上传订单查询'
    }, params, loading)
  },

  orderDetail(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/submit/app",
      apiName: '上传订单详情获取'
    }, params, loading)
  },

  orderInspectSearch(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/inspect/app/search",
      apiName: '审核订单查询'
    }, params, loading)
  },

  orderInspectDetail(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/inspect/app",
      apiName: '审核订单详情获取'
    }, params, loading)
  },

  orderApprove(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/resource/approve",
      apiName: '开卡资料审核'
    }, params, loading)
  },

  incomeList(params, loading) {
    return _http('post', {
      url: "/eas/off/income/strategy/list",
      apiName: '佣金策略-策略列表'
    }, params, loading)
  },

  confirmPassword(params, loading) {
    return _http('post', {
      url: "/ums/user/confirmPassword",
      apiName: '登陆后确认密码-公司用户'
    }, params, loading)
  },

  orderForward(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/resource/forward",
      apiName: '开卡资料流转'
    }, params, loading)
  },

  goodsAll(params, loading) {
    return _http('post', {
      url: "/eas/off/goods/listAll",
      apiName: '获取所有商品'
    }, params, loading)
  },

  orderRecord(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/record",
      apiName: '获取订单历史记录'
    }, params, loading)
  },

  orderCheck(params, loading) {
    return _http('post', {
      url: "/eas/offline/order/check",
      apiName: '佣金发放和核减'
    }, params, loading)
  },

  guideInfo(params, loading) {
    return _http('post', {
      url: "/eas/off/product/guideInfo",
      apiName: '根据ICCID、商品id查询激活引导'
    }, params, loading)
  },

  shopGuideInfo(params, loading) {
    return _http('post', {
      url: "/ums/shop/supplier/guideInfo",
      apiName: '供应商的充值引导-(我的充值引导直接调用【我的商铺信息接口】)'
    }, params, loading)
  },

  shopInfo(params, loading) {
    return _http('post', {
      url: "/ums/shop/info",
      apiName: '我的店铺信息'
    }, params, loading)
  },

  mySupplierGuideList(params, loading) {
    return _http('post', {
      url: "/ums/shop/relation/mySupplierGuideList",
      apiName: '我的供应商下拉列表-有充值链接的'
    }, params, loading)
  },

  newMessageOrder(params, loading) {
    return _http('post', {
      url: "/mnc/message/newMessageOrder",
      apiName: '获取最新消息'
    }, params, loading)
  },

  mySupplier(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/relation/mySupplier",
      apiName: "我的供应商",
    }, params, loading, headers);
  },
}



